package com.yanghui.lingyue.utils.netUtils

import java.io.InputStream
import java.net.URL
import java.util.*

object NetImageUtils {



    fun getImageFromURL(url: String): InputStream {
        val site = URL(url)
        val connection = site.openConnection()
        connection.connectTimeout = 5000
        return connection.getInputStream()
    }


}